package com.chen.spring.cloud.service.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chen.entity.Resource;
import com.chen.spring.cloud.service.admin.mapper.ResourceMapper;
import com.chen.spring.cloud.service.admin.service.IResourceService;
import com.chen.vo.ResListVo;
import com.chen.vo.ReservationVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 景点资源表 服务实现类
 * </p>
 *
 * @author 陈永鹏
 * @since 2019-03-26
 */
@Service
public class ResourceServiceImpl extends ServiceImpl<ResourceMapper, Resource> implements IResourceService {

    @Autowired
    private ResourceMapper resourceMapper;

    @Override
    public List<ResListVo> getResList() {
        return resourceMapper.getResList();
    }

    @Override
    public ReservationVo getReservationVo(Integer u_id) {
        return resourceMapper.getReservationVo(u_id);
    }
}
